import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver =webdriver.Edge()
driver.maximize_window()
driver.get('http://10.59.9.14:7003/home/login.html')
#用户名 name="username"
driver.find_element(By.NAME,'username').send_keys('19834742041')
#密码 name="password"
driver.find_element(By.NAME,'password').send_keys('123456')
#手动输入验证码的时间
time.sleep(10)
#点击登录 class="finish-btn"
driver.find_element(By.CLASS_NAME,'finish-btn').click()
print("使用cookier登录成功")

